package com.zhanghu.hibernate.dto;

/**
 * 测试自定义返回类
 */
public class SampleDTO {

    private final Integer id;

    private final String name;

    public SampleDTO(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
